package com.example.dingtalkwebproject.service.impl;

import com.example.dingtalkwebproject.mapper.sysLoginUserMapper;
import com.example.dingtalkwebproject.pojo.sysLoginUser;
import com.example.dingtalkwebproject.service.sysLoginUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class sysLoginUserServicelmpl implements sysLoginUserService {


    @Autowired
    private sysLoginUserMapper sysLoginUserMapper;


    /**
     * 根据用户名获取当前登陆信息
     * @param loginId
     * @return
     */
    @Override
    public sysLoginUser selectLoginInfoByUserId(String loginId) {
        return sysLoginUserMapper.selectLoginInfoByUserId(loginId);
    }

    @Override
    public List<sysLoginUser> selectAllLogisticsInfos() {
        return sysLoginUserMapper.selectAllLogisticsInfos();
    }
}
